import java.util.Scanner;

// THIS IS JUST A MAIN FOR TESTING
public class tempmain {

	public static void main(String[] args) {
		
	//inits member data list	
	MemberData fullList = new MemberData();
	//inits initial admin (as doctor) account
	Member admin = new Doctor("admin", "admin", "admin", "admin", "admin", fullList.getSize());
	//adds account to list
	fullList.addMember(admin);
	
	
	Scanner scan = new Scanner(System.in);
	System.out.println("This is careware, yo");
	
	
	//temp is the current working account. if that makes any sense
	Member temp = null;
	
	while(temp == null)
	{
		String username = "";
		String pass = "";
		if(fullList.validate(username, pass) == null)
		{
		//asks for input
		System.out.println("Enter your username");
		username = scan.nextLine();
		
		System.out.println("Password");
		pass = scan.nextLine();
		
		//logs in to account using validate method.
		
			temp = fullList.validate(username, pass);
		}
	
	
	
	}
	}

}
